import request from '@/http/request'
// 虚拟卷列表

export const $virtualList = (params:any) => {
    return request.request({
      url: '/api/award/virtual',
      method: 'get',
      params: params
    })
  }

//   虚拟劵详情
export const $virtualDetail = (params:any) => {
    return request.request({
      url: '/api/award/virtual/getDetail',
      method: 'get',
      params: params
    })
  }

// 更改虚拟劵状态
export const $virtualState = (params:any) => {
    return request.request({
      url: '/api/award/virtual/state',
      method: 'put',
      params: params
    })
  }
// 新增OR修改虚拟券
export function $virtualAdd(data:any) {
  return request.request({
    url: '/api/award/virtual/add',
    method:'post',
    data,
  })
}

export function $virtualEdit(data:any) {
  return request.request({
    url: '/api/award/virtual/update',
    method:'post',
    data,
  })
}

export function $getVirtualGoodsGoods(){
  return request.request({
    url: '/api/virtualGoods/inside/getList',
    method: 'get',
   
  })
}  
  // 删除虚拟券奖品
  export function $virtualDelete(params:any) {
    return request.request({
      url: '/api/award/virtual/delete',
      method: 'delete',
      params: params
    })
  }